<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class GcText extends Model
{
    use HasFactory;

    protected $guarded = ['id'];

    
    public function gcGroup()
    {
        return $this->belongsTo(GcGroup::class,'gc_group_id', 'id');
    }

    public function gcCategroy()
    {
        return $this->belongsTo(GcCategory::class, 'gc_category_id', 'id');
    }

  
}
